
package com.xiaoma.myaudience.biz.util;

import android.os.Environment;


/**
 * 字符串常量
 * 
 */
public final class Constant {    
	//评分满分数
	public static final int TOTAL_SCORE_CONSTANT = 10;
	
//    public static final String IMG_URL_PREFEX = "http://122.192.64.83:9099/uch/attachment/";
    public static final String IMG_URL_PREFEX = "http://www.iguanzhong.com/uch/attachment/";
    public static final String IMG_URL_HEAD = "http://www.iguanzhong.com/uch/attachment/";
    
    public static final String FILE_SDCARD_BASE = Environment.getExternalStorageDirectory().toString() + "/netease/video/";
    public static final String FILE_TMP_IMG = FILE_SDCARD_BASE + "audience_temp_pic/";
    public static final String FILE_DOWNLOAD_IMG = FILE_SDCARD_BASE + "audience_down_pic/";
    
//    public static final String URL_BASE = "http://122.192.64.83:9099/uch";
    public static final String URL_BASE = "http://www.iguanzhong.com/uch";
    
    
    public static final String URL_HOME = URL_BASE + "/ios/index.php";
    public static final String URL_ACTIVITY = URL_BASE + "/ios/event.php?op=all";
    public static final String URL_ACTIVITY_FOR_CLASS = URL_BASE + "";
    public static final String URL_ACTIVITY_DETAIL = URL_BASE + "/ios/event.php?op=detail&eventid=%s";
    public static final String URL_RANKING = URL_BASE + "/ios/event.php?type=%s&op=rank&direction=1&line=0&perpage=10";
    public static final String URL_COMMONT = URL_BASE + "/ios/comment.php";
    public static final String URL_COMMONT_CONTENT = URL_BASE + "/ios/comment.php?eventid=%s&op=view&type=1";
    public static final String URL_UPDATE_USERINFO = URL_BASE + "/ios/user.php";
    public static final String URL_ADD_EVENT = URL_BASE + "/ios/event.php?op=addevent&eventid=%s";
    public static final String URL_REVIEW = URL_BASE + "/ios/comment.php?eventid=%s&op=view&type=%s";
    public static final String URL_REVIEW_PIC = URL_BASE + "/ios/comment.php?picid=%s&op=view&type=%s";
    public static final String URL_REVIEW_MORE = URL_BASE + "/ios/comment.php?op=page&type=%s&dateline=%s&direction=2&mold=2";
    public static final String URL_ACTIVITY_SELECT = URL_BASE + "/ios/event.php";
    public static final String URL_ACTIVITY_QUIT = URL_BASE + "/ios/event.php?op=quitevent&eventid=%s";
    public static final String URL_UP_LOAD = URL_BASE + "/ios/comment.php";
    public static final String URL_RANK_MORE = URL_BASE + "/ios/event.php?op=rank&type=%s&direction=2&perpage=10&line=%s";
    public static final String URL_MY_ACTIVITY = URL_BASE + "/ios/user.php?op=addeventpage&direction=2&dateline=%s";
    
    
    public static final int CAPTURE_IMG_WIDTH = 80;
    public static final int CAPTURE_IMG_HEIGHT = 60;
    
    
    
    
    public static final String URL_HEADLINE = URL_BASE + "/v/headline.html";
    public static final String URL_HOT_FILM = URL_BASE + "/v/film/hot/0-10.html";
    public static final String URL_HOT_TV = URL_BASE + "/v/tv/hot/0-10.html";
    public static final String URL_ADD_PLAY_RECORD = URL_BASE + "/v/user/playrecord/add/";
    public static final String URL_DELETE_PLAY_RECORD = URL_BASE + "/v/user/playrecord/clear/";
    public static final String URL_GET_PLAY_RECORD = URL_BASE + "/v/user/playrecord/my/%s/%d-%d.html";
    public static final String URL_ADD_SUBSCRIBE = URL_BASE + "/v/user/subscribe/";
    public static final String URL_DELETE_SUBSCRIBE = URL_BASE + "/v/user/unsubscribe/";
    public static final String URL_GET_SUBSCRIBE = URL_BASE + "/v/user/subscribe/my/%s/%d-%d.html";
    
    //分享
    public static final String CLIENT_SOURCE = "<a href=\"http://m.163.com/\">网易影视Android版</a>";
    public static final String SHARE_TO_MICROBLOG = "http://api.t.163.com/statuses/update.json";
    public static final String TIEURL = "http://comment.news.163.com/";
    
    //分类url
    public static final String URL_CATEGORY_OPTIONS = URL_BASE + "/v/%s/options.html";
    public static final String URL_CATEGORY_SEARCH_LIST = URL_BASE + "/v/%s/list/%s-%s-%s/%s-%s.html";
    
    /** 搜索URL*/
    public static final String URL_SEARCH_SUBMIT = URL_BASE + "/v/search/%s/all.html";
    
    /** 剧情详细URL */
    public static final String URL_VIDEO_DETAIL = URL_BASE + "/v/detail/%s.html";
    
    /**获取跟贴数*/
    public static final String URL_GET_COMMENT_COUNTS = "http://comment.api.163.com/api/json/thread/total/%s/%s";
    
    /**登陆URL*/
    public static final String URL_LOGIN = URL_BASE+"/ios/login.php";
    
    /**登陆URL*/
    public static final String URL_GET_USERINFO = URL_BASE+"/ios/user.php?op=all";
    
    /**注册URL*/
    public static final String URL_REGISTER_PATH = URL_BASE+"/ios/register.php";
    
    /**注册URL*/
    public static final String URL_SENDPHONENUM_PATH = URL_BASE+"/ios/phone.php";
    
    /**检查更新软件L*/
    public static final String URL_CHECKUPDATE_PATH = URL_BASE+"/ios/version.php";    

    /**忘记密码URL*/
    public static final String URL_FORGETPASSWORD_PATH = "http://reg.163.com/reg/reg_mob2_retake_pw.jsp";
    
    /**用户反馈URL*/
    public static final String URL_FEEDBACK_PATH = URL_BASE+"/ios/user.php";
    
    /**第三方登录*/
    public static final String URL_WEIBOLOGIN_PATH = URL_BASE+"/ios/weibo.php";
    
	/**最热跟贴URL*/
    public static final String URL_HOT_COMMENTS_URL = "http://comment.api.163.com/api/json/post/list/hot/";
    
    /**最新跟贴URL*/
    public static final String URL_LATEST_COMMENTS_URL = "http://comment.api.163.com/api/json/post/list/normal/";

    /**一栋楼的URL*/
    public static final String URL_ONEBUILDDING_URL = "http://comment.api.163.com/api/json/post/load/";
    
    /**顶贴URL*/
    public static final String URL_VOTE_COMMENT_UP = "http://comment.api.163.com/api/reply/upvote/";
    
    /**发表跟贴URL*/
    public static final String URL_POST_COMMENT = "http://comment.api.163.com/api/jsonp/post/insert";
    
    
    /**影片ID*/
	public static final String PID = "plid";
	/**影片标题*/
	public static final String TITLE = "title";
	/**影片导演*/
	public static final String DIRECTOR = "director";
	/**影片类型*/
	public static final String FLAG = "flag";
	/**影片图片*/
	public static final String IMG = "img";
	/**影片上映时间*/
	public static final String LAUNCH = "launch";
	/**影片主演*/
	public static final String PERFORMER = "performer";
	/**影片评论版块*/
	public static final String REPLYBOARD = "replyboard";
	/**影片评论ID*/
	public static final String REPLYID = "replyid";
	/**影片评分*/
	public static final String SCORE = "score";
	/**影片标签*/
	public static final String TAGS = "tags";
	/**影片类型*/
	public static final String TYPE = "type";
	
	/**MP4高清地址*/
	public static final String MP4HDURL = "mp4_hd";
	/**MP4普清地址*/
	public static final String MP4SDURL = "mp4_sd";
	/**影片序号*/
	public static final String VIDEOINDEX = "index";

	/**热门跟贴*/
	public static final String HOST_COMMENT_MAP = "hotCommentInfo";
	/**最新跟贴*/
	public static final String LATEST_COMMENT_MAP = "latestCommentInfo";
	
	/**======================跟贴==============================*/
	public static final String PRCOUNT_TAG = "prcount";
	public static final String HOTPOSTS_TAG = "hotPosts";
	public static final String NEWPOSTS_TAG = "newPosts";
	public static final String CODE_TAG = "code";
	public static final String PTCOUNT_TAG = "ptcount";
	
	public static final String ERRMSG_TAG = "errMsg";
	
	public static final String VOTE_TAG = "v";
	public static final String USERNAME_TAG = "u";
	public static final String TIME_TAG = "t";
	public static final String B_TAG = "b";
	public static final String P_TAG = "p";
	public static final String BOARDID_TAG = "bi";
	public static final String PI_TAG = "pi";
	public static final String IP_TAG = "ip";
	public static final String F_TAG = "f";
	public static final String L_TAG = "l";
	
	public static final String NON_TAG = "NON";
	
	public static final String BOA_TAG = "board";
	public static final String THREADID_TAG = "threadid";
	public static final String QUOTE_TAG = "quote";
	public static final String BODY_TAG = "body";
	public static final String USERID_TAG = "userid";
	public static final String NICKNAME_TAG = "nickname";
	public static final String HIDDENAME_TAG = "hidename";
	
	public static final String POSTID_TAG = "postid"; 
	public static final String REPLYCOUNT_TAG = "replyCount";
	public static final String TIES_TAG = "ties";
	public static final String TITLE_TAG = "title";
	public static final String DOCID_TAG = "docid";
	public static final String REPLYBOARD_TAG = "replyBoard";
	public static final String FLOOR_TAG = "floor";
	public static final String AUTHOR_TAG = "author";
	public static final String TIE_TAG = "tie";
	public static final String PTIME_TAG = "ptime";
	/**======================跟贴==============================*/
	
	/** =====================跟贴信息========================*/
	/**最热跟贴最多显示个数*/
	public static final int HOT_COMMNET_NUMS = 5;
	/**隐藏楼层的条件数、、到达次数隐藏楼层*/
	public static final int HIDE_CONDITION_NUMS = 10;
	/**最新跟贴显示个数*/
	public static final int LATEST_COMMNET_NUMS = 5;
	/**隐藏楼层上部跟贴数*/
	public static final int HIDE_TOP_NUM = 2;
	/**隐藏楼层下部跟贴数*/
	public static final int HIDE_BOTTOM_NUM = 2;
    /**每次显示更贴个数*/
	public static final int PERTIME_SHOW_COMMENT_NUMS = 10;
	
	/**登陆请求吗*/
	public static final int LOGIN_REQUESTCODE = 1010;
	
	/**登陆有关*/
	public final static String LOGIN_ISLOGIN ="islogin";
	public final static String LOGIN_EXPIRESDATE ="expires";
	public final static String LOGIN_COOKIE1 ="uchome_app_auth";
    public final static String LOGIN_COOKIE2 ="uchome_app_user";
	/**第三方登录用key*/
    public final static String QQ_APPID ="100511800";
    public final static String SINA_APPKEY ="2408173675";
    public static final String WEIBO_REDIRECT_URL = "http://www.iguanzhong.com/";
 // 新支持scope：支持传入多个scope权限，用逗号分隔
    public static final String SCOPE = 
            "email,direct_messages_read,direct_messages_write,"
            + "friendships_groups_read,friendships_groups_write,statuses_to_me_read,"
            + "follow_app_official_microblog," + "invitation_write";
    
    
	// 新浪微博======================================================

	/** 申请的appkey,修改成你自己的才能使用 **/
	String SINA_APP_KEY = "230409856";

	/** 申请的App Secret,修改成你自己的才能使用 **/
	String SINA_APP_SECRET = "c4bb2921f622f256d3e2766c8aeb72a1";

	// 回调地址，移动APP使用官方默认地址
	String SINA_REDIRECT_URL = "http://www.iguanzhong.com/";

	// 新支持scope 支持传入多个scope权限，用逗号分隔，暂时用不上
	String SINA_SCOPE = "email,direct_messages_read,direct_messages_write,"
			+ "friendships_groups_read,friendships_groups_write,statuses_to_me_read," + "follow_app_official_microblog";

	/** 认证Code **/
	String SINA_CODE = "code";

	String SINA_ACCESS_TOKEN = "access_token";

	String SINA_EXPIRES_IN = "expires_in";

	String SINA_UID = "uid";

	String SINA_USER_NAME = "userName";

	String SINA_NAME = "name";

	String SINA_REMIND_IN = "remind_in";

	String SINA_DATE_PATTERN = "yyyy/MM/dd HH:mm:ss";

	String SINA_CLIENT_ID = "client_id";

	String SINA_CLIENT_SECRET = "client_secret";

	String SINA_GRANT_TYPE = "grant_type";

	String SINA_GRANT_TYPE_VALUE = "authorization_code";

	String SINA_REDIRECT_URI = "redirect_uri";

	// 新浪微博首选项

	String PREF_SINA_ACCESS_TOKEN = "SINA_ACCESS_TOKEN";

	String PREF_SINA_EXPIRES_TIME = "SINA_EXPIRES_TIME";

	String PREF_SINA_UID = "SINA_UID";

	String PREF_SINA_USER_NAME = "SINA_USER_NAME";

	String PREF_SINA_REMIND_IN = "SINA_REMIND_IN";
	

}
